/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bean;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Ovidio Alonso Zapata
 */
@Embeddable
public class TestPK implements Serializable {
    @Column(name = "numero_test", nullable = false)
    private BigInteger numeroTest;
    @Column(name = "clasificacion", nullable = false)
    private String clasificacion;

    public TestPK() {
    }

    public TestPK(BigInteger numeroTest, String clasificacion) {
        this.numeroTest = numeroTest;
        this.clasificacion = clasificacion;
    }

    public BigInteger getNumeroTest() {
        return numeroTest;
    }

    public void setNumeroTest(BigInteger numeroTest) {
        this.numeroTest = numeroTest;
    }

    public String getClasificacion() {
        return clasificacion;
    }

    public void setClasificacion(String clasificacion) {
        this.clasificacion = clasificacion;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (numeroTest != null ? numeroTest.hashCode() : 0);
        hash += (clasificacion != null ? clasificacion.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TestPK)) {
            return false;
        }
        TestPK other = (TestPK) object;
        if ((this.numeroTest == null && other.numeroTest != null) || (this.numeroTest != null && !this.numeroTest.equals(other.numeroTest))) {
            return false;
        }
        if ((this.clasificacion == null && other.clasificacion != null) || (this.clasificacion != null && !this.clasificacion.equals(other.clasificacion))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "bean.TestPK[numeroTest=" + numeroTest + ", clasificacion=" + clasificacion + "]";
    }

}
